package com.jxmcloud.business.cut.mapper.database;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jxmcloud.business.cut.model.database.DBUserActivityInfo;
import com.jxmcloud.business.cut.model.query.UserActivityInfoQuery;
import com.jxmcloud.business.cut.vo.UserActivityInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface IUserActivityInfoDBMapper extends BaseMapper<DBUserActivityInfo> {
    /**
     * 获取用户正在进行中的活动
     * @param uid
     * @return
     */
    DBUserActivityInfo selectByUidAndActivityIdOnDoing(@Param("uid") Integer uid);

    IPage<UserActivityInfoVo> selectUserActivityInfoPage(@Param("query") UserActivityInfoQuery query);
}
